﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FisheryPlatform.Common
{
    public class Base64Utility
    {
        public static string EncodeBase64(string text)
        {
            byte[] bytes = System.Text.Encoding.Default.GetBytes(text);
            return Convert.ToBase64String(bytes);
        }

        public static string DecodeBase64(string text)
        {
            byte[] bytes = Convert.FromBase64String(text);
            return System.Text.Encoding.Default.GetString(bytes);
        }
    }
}
